package com.kuizii.base.common.idgenerator;

import java.util.UUID;

/**
 * @Author: nuanyang
 * @Date: 2019/8/16 0016 11:07
 */
public class UUIDGenerator implements IdGenerator<String> {


    @Override
    public String newId() {
        return UUID.randomUUID().toString().replace("-", "");
    }

    public static String nextId() {
        return UUID.randomUUID().toString().replace("-", "");
    }

}
